import request from '@/utils/request'

// 查询商机管理列表
export function listLeadManagement(query) {
  return request({
    url: '/web/leadManagement/list',
    method: 'get',
    params: query
  })
}

// 查询商机管理详细
export function getLeadManagement(id) {
  return request({
    url: '/web/leadManagement/' + id,
    method: 'get'
  })
}

// 新增商机管理
export function addLeadManagement(data) {
  return request({
    url: '/web/leadManagement',
    method: 'post',
    data: data
  })
}

// 修改商机管理
export function updateLeadManagement(data) {
  return request({
    url: '/web/leadManagement',
    method: 'put',
    data: data
  })
}

// 删除商机管理
export function delLeadManagement(id) {
  return request({
    url: '/web/leadManagement/' + id,
    method: 'delete'
  })
}
